import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [{
	//  首页
	path: '/home/:id',
	// name: 'home',
	component: () => import('@/pages/bb')
},
{
	name: 'powerLinks',
	path: '/power_links',
	component: () => import('@/pages/aa')
},
// {
// 	//  首页
// 	path: '/aa/:id',
// 	name: 'aa',
// 	component: () => import('@/pages/themes'),
// },

{
	path: '/',
	name: 'layout',
	redirect: '/home',
	component: () => import('@/layout'),
	children: [{
		//  首页
		path: '/home/:id',
		name: 'homes',
		component: () => import('@/pages/bb'),
	},

	],
},


]

const router = new VueRouter({
	mode: 'history',
	base: '/',
	routes
})

export default router